package com.neu.credit.creditscore.entity.hospital;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("prescription_drugs")
@Schema(name = "PrescriptionDrugs", description = "处方药品信息表")
public class PrescriptionDrugs {

    @Schema(description = "药品ID，自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "药品名称")
    private String drugName;

    @Schema(description = "药品规格")
    private String drugSpecification;

    @Schema(description = "药品价格")
    private BigDecimal drugPrice;

    @Schema(description = "药品库存")
    private Integer drugStock;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}